<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
/**
 *    打印相关
*/ 
@media print 
{
    .notprint 
    {
        display:none;
    }
    .PageNext
    {
        page-break-after:always;
    }     
}
</style>
<style>
.info{
	width:950px;
	font-size:14px;
	 }
.h50,.h30,.h20,.h10,.h5,.h1{width:100%; overflow:hidden; clear:both}
.h1{ height:1px; }
.h5{ height:5px; }
.h10{ height:10px; }
.h20{ height:20px; }
.h30{ height:30px; line-height:30px}
.h50{ height:50px}	 
.order_sn{
	text-align:center;width:938px;
    }
.top_info{
	}
.top_info_left{
	float:left;
	width:50%;
}
.top_info_left table {
	width:85%;
	text-align:center;
}
.top_info_right{
	float:left;
	width:49%;
}
.td_right{
	width:25%;
	text-align:right;
    }
td{
	padding-top:8px;
}	
.body_info_div{
/*	border:1px solid red;*/
	float:left;
    width:49.2%;
	border-right:1px solid #000;
}
.body_info_div_2{
/*	border:1px solid red;*/
	float:left;
    width:98.4%;
	border-right:1px solid #000;
}
.info_title{
	text-align:left;
	border-bottom:1px solid #000;
	padding-bottom:5px;
	padding-left:20px;
	}
.info_content{
	margin-left:10px;
}
.bottom_info{
	border:1px solid #000;
	height:200px;
	padding-left:25px;
	}
.bottom_info_left{
	float:left;
	width:40%;
}
.bottom_info_right{
	float:left;
	width:59%;
}
.zt{/*background-image:url("/admin/Tpl/order/black_dot.png");*/background-color:#FFFFFF;margin-left:-3px; text-align:center;font-size:50px;font-weight:bold; width:98%}

.tablesupplier{
   border:1px solid black;
   border-bottom:0px;
   width:938px;
   border-right:0px;
}

.tablesupplier td{
	border:1px solid black;
	line-height:22px;
	padding:2px;
	padding-left:4px;
	border-top:0px;	
	border-left:0px;
	min-height:50px;
	padding-bottom:4px;
}
.tableImg img{
	width:90px;
	height:120px;
}
.tdleft{
	width:25%;
	padding-left:15px;
}
</style>
</head>
<body>
<div class="info">
    <table class="tablesupplier" cellpadding="0" cellspacing="0">
    <tr><td>
    <div class="order_sn"><font>商品名称：<?php echo $orderfigure['product_name']?></font></div>
    <div class="order_sn" >客户名称:<?php echo $name;?>&nbsp;&nbsp;<?php echo $order['delivery_last_name'];?> | 订单号：<?php echo $orderfigure['order_id'].'-'.$order_item_id;?> | 货号：<?php echo $order['product_sn'];?> <img src="/statics/barcodegen/code.php?text=<?php echo $Barcode;?>"  align=absmiddle /> | 交货日期：</div>
    </td></tr>
    </table>
    <div class="h20">&nbsp;</div>
    <div class="top_info">
          <table class="tablesupplier" cellpadding="0" cellspacing="0">
              <tr>
                 <td style="width:50%;border-right:1px solid black; text-align:center; width:280px" rowspan="15">
                 <img src="<?php echo 'http://' . $_SERVER['HTTP_HOST'].str_replace(UPLOAD_PATH, UPLOAD_PATH.'app/', dirname($product['small_img'])).'/250x250_'.basename(str_replace('thumb_','',$product['small_img']));?>"  />
                 </td>
                 <td  colspan="2" style="text-align:center;">材料</td>
              </tr>
              <tr>                       
                 <td class="tdleft">帮面</td>
                 <td style="width:30%;"><?php echo isset($orderfigure['attr_array']['151'])?$orderfigure['attr_array']['151']['cn_attr_value_name']:'没有';?></td>
              </tr>
              <tr>                       
                 <td class="tdleft">鞋垫</td>
                 <td><?php echo isset($orderfigure['attr_array']['152'])?$orderfigure['attr_array']['152']['cn_attr_value_name']:'没有';?></td>
              </tr> 
              <tr>                       
                 <td class="tdleft">内里</td>
                 <td><?php echo isset($orderfigure['attr_array']['153'])?$orderfigure['attr_array']['153']['cn_attr_value_name']:'没有';?></td>
              </tr> 
              <tr>                       
                 <td class="tdleft">鞋底样式</td>
                 <td><?php echo isset($orderfigure['attr_array']['154'])?$orderfigure['attr_array']['154']['cn_attr_value_name']:'没有';?></td>
              </tr> 
              <tr>                       
                 <td class="tdleft">烫字位置</td>
                 <td><?php echo isset($orderfigure['attr_array']['157'])?$orderfigure['attr_array']['157']['cn_attr_value_name']:'没有';?></td>
              </tr>
              <tr>                       
                 <td class="tdleft">烫字内容</td>
                 <td><?php echo $font_1;?></td>
              </tr>
              <tr>                       
                 <td class="tdleft">烫字尺寸</td>
                 <td>5cm*0.5cm</td>
              </tr>  
              <tr>                       
                 <td class="tdleft">烫字颜色</td>
                 <td>银色</td>
              </tr>                                
              <tr>                       
                 <td colspan="2" style="text-align:center;">客户尺寸测量</td>
              </tr>  
              <tr>                       
                 <td class="tdleft">脚长（cm）</td>
                 <td>
				 <?php 
				     $val = isset($orderfigure['attr_array']['159'])?$orderfigure['attr_array']['159']['cn_attr_value_name']:0;
					 echo $orderfigure['attr_array']['158']['attr_value_id'] == 897 ? $val * 2.54 : $val;
				 ?>
                 </td>
              </tr>
              <tr>                       
                 <td class="tdleft">平时穿着尺码</td>
                 <td>
                 <?php 
			
				 	 $VN = $orderfigure['attr_array']['162']['cn_attr_value_name'];
				 	 $size=explode("(",$VN);
				 	 echo $cn_size=D('shoes_size_data')->where('us_size='.$size[0])->getField('cn_size');
					
				 ?>
<!--				 <?php echo isset($orderfigure['attr_array']['161'])?$orderfigure['attr_array']['161']['cn_attr_value_name']:'没有';?>:
                 <?php echo isset($orderfigure['attr_array']['162'])?$orderfigure['attr_array']['162']['cn_attr_value_name']:'';?>-->
                 </td>
              </tr>
              <tr>                       
                 <td colspan="2" style="text-align:center;">其它</td>
              </tr>             
              <tr>                       
                 <td class="tdleft">定制数量</td>
                 <td>
				 <?php echo $orderfigure['qty'];?>
                 </td>
              </tr>              
              <tr>                       
                 <td colspan="3" style="padding-top:0px;">
                 <span>特殊要求:</span><br />
                 <p style="min-height:60px; padding-top:0px;word-break : break-all; overflow:hidden; ">不烫鞋码 <?php if($orderfigure['special_request']!="" ){echo $orderfigure['special_request'];}else{ echo $orderfigure['special_request_1']; }?></p>
                 </td>
              </tr>                                                                                                                                                                                  
          </table>
    </div>
    <div class="h20">&nbsp;</div>    
    <div>烫字图片:</div>
    <?php if($font_1): ?>
    <table style="border:1px solid black;width:350px;border-right:0px solid #FFF;" >
        <tr>
            <td style="height:30px;border:0px solid #FFF; border-right:1px solid black;">&nbsp;</td>
        </tr>            
	    <tr><td style="height:30px;border:0px solid #FFF; border-right:1px solid black;line-height:30px; color:#000000;font-family:'Arial,Helvetica,sans-serif';font-size:24px; text-align:center;"><?php echo $font_1;?></td></tr>
        <tr>
            <td style="height:30px;border:0px solid #FFF; border-right:1px solid black;">&nbsp;</td>
        </tr>   
    </table>
	<?php endif;?>
 
    <table width="100%" style="border:0px solid #FFF;">
        <tr>
            <td align="center"><div class="notprint"><?php if(!$noshow):?> <input type="button" class="button" onclick="javascript:window.print();" value="打印"><?php endif;?>    </div>   </td>
        </tr>     
    </table>  
 
</div>
</body>
</html>